import java.util.Scanner;

public class GuessNumber {
    public static void main(String[] args) {
        int number = (int) (Math.random() * 100) + 1;
        System.out.println(number);
        int count = 0;
        int max = 100;
        int min = 1;
        while (true) {
            for (int i = 0; i <= 7; i++) {
                Scanner sc = new Scanner(System.in);
                count++;
                int guessNumber = sc.nextInt();
                if (i == 7) {
                    if (guessNumber == number) {
                        System.out.println("di 7 cichenggong");
                    } else {
                        System.out.println("cishuyongwan");
                        break;
                    }
                }
                if (guessNumber > number) {
                    max = guessNumber;
                    System.out.println("你猜大了");
                } else if (guessNumber < number) {
                    min = guessNumber;
                    System.out.println("你猜小了");
                } else {
                    System.out.println("caizongle");
                    System.out.println("请问还要继续吗？(yes)");
                    sc = new Scanner(System.in);
                    String str = sc.nextLine();
                    if ("yes".equals(str)) {
                        number = (int) (Math.random() * 100) + 1;
                        count = 0;
                        max = 100;
                        min = 1;
                    } else {
                        break;
                    }

                }


            }
            System.out.println("游戏结束!");
        }


    }
}